﻿/**
 * ...
 * @author Kliment
 */
class kliment.events.Event {
	public static var OPEN:String = "open";
	public static var COMPLETE:String = "complete";
	public static var INIT:String = "init";
	
	private var _type:String;
	private var _target:Object;
	
	public function Event(type:String, target:Object) {
		_type = type;
		_target = target;
	}
	
	public function get type():String { return _type; }
	
	public function get target():Object { return _target; }
	
	public function toString():String {
		return "[Event type=" + _type + " target=" + _target + "]";
	}
	
	public function clone():Event {
		return new Event(_type, _target);
	}
	
}